﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014E5 RID: 5349
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UseTreasureDungeonItemCsReq : IMessage<UseTreasureDungeonItemCsReq>, IMessage, IEquatable<UseTreasureDungeonItemCsReq>, IDeepCloneable<UseTreasureDungeonItemCsReq>, IBufferMessage
	{
		// Token: 0x1700435D RID: 17245
		// (get) Token: 0x0600EF4E RID: 61262 RVA: 0x0027F29D File Offset: 0x0027D49D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UseTreasureDungeonItemCsReq> Parser
		{
			get
			{
				return UseTreasureDungeonItemCsReq._parser;
			}
		}

		// Token: 0x1700435E RID: 17246
		// (get) Token: 0x0600EF4F RID: 61263 RVA: 0x0027F2A4 File Offset: 0x0027D4A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UseTreasureDungeonItemCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700435F RID: 17247
		// (get) Token: 0x0600EF50 RID: 61264 RVA: 0x0027F2B6 File Offset: 0x0027D4B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UseTreasureDungeonItemCsReq.Descriptor;
			}
		}

		// Token: 0x0600EF51 RID: 61265 RVA: 0x0027F2BD File Offset: 0x0027D4BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseTreasureDungeonItemCsReq()
		{
		}

		// Token: 0x0600EF52 RID: 61266 RVA: 0x0027F2C5 File Offset: 0x0027D4C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseTreasureDungeonItemCsReq(UseTreasureDungeonItemCsReq other) : this()
		{
			this.gridId_ = other.gridId_;
			this.hMPPFGCIFJK_ = other.hMPPFGCIFJK_;
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EF53 RID: 61267 RVA: 0x0027F302 File Offset: 0x0027D502
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseTreasureDungeonItemCsReq Clone()
		{
			return new UseTreasureDungeonItemCsReq(this);
		}

		// Token: 0x17004360 RID: 17248
		// (get) Token: 0x0600EF54 RID: 61268 RVA: 0x0027F30A File Offset: 0x0027D50A
		// (set) Token: 0x0600EF55 RID: 61269 RVA: 0x0027F312 File Offset: 0x0027D512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GridId
		{
			get
			{
				return this.gridId_;
			}
			set
			{
				this.gridId_ = value;
			}
		}

		// Token: 0x17004361 RID: 17249
		// (get) Token: 0x0600EF56 RID: 61270 RVA: 0x0027F31B File Offset: 0x0027D51B
		// (set) Token: 0x0600EF57 RID: 61271 RVA: 0x0027F323 File Offset: 0x0027D523
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint HMPPFGCIFJK
		{
			get
			{
				return this.hMPPFGCIFJK_;
			}
			set
			{
				this.hMPPFGCIFJK_ = value;
			}
		}

		// Token: 0x17004362 RID: 17250
		// (get) Token: 0x0600EF58 RID: 61272 RVA: 0x0027F32C File Offset: 0x0027D52C
		// (set) Token: 0x0600EF59 RID: 61273 RVA: 0x0027F334 File Offset: 0x0027D534
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x0600EF5A RID: 61274 RVA: 0x0027F33D File Offset: 0x0027D53D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UseTreasureDungeonItemCsReq);
		}

		// Token: 0x0600EF5B RID: 61275 RVA: 0x0027F34C File Offset: 0x0027D54C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UseTreasureDungeonItemCsReq other)
		{
			return other != null && (other == this || (this.GridId == other.GridId && this.HMPPFGCIFJK == other.HMPPFGCIFJK && this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EF5C RID: 61276 RVA: 0x0027F3A8 File Offset: 0x0027D5A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GridId != 0U)
			{
				num ^= this.GridId.GetHashCode();
			}
			if (this.HMPPFGCIFJK != 0U)
			{
				num ^= this.HMPPFGCIFJK.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EF5D RID: 61277 RVA: 0x0027F419 File Offset: 0x0027D619
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EF5E RID: 61278 RVA: 0x0027F421 File Offset: 0x0027D621
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EF5F RID: 61279 RVA: 0x0027F42C File Offset: 0x0027D62C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GridId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.GridId);
			}
			if (this.HMPPFGCIFJK != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.HMPPFGCIFJK);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EF60 RID: 61280 RVA: 0x0027F4A4 File Offset: 0x0027D6A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GridId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GridId);
			}
			if (this.HMPPFGCIFJK != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.HMPPFGCIFJK);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EF61 RID: 61281 RVA: 0x0027F514 File Offset: 0x0027D714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UseTreasureDungeonItemCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GridId != 0U)
			{
				this.GridId = other.GridId;
			}
			if (other.HMPPFGCIFJK != 0U)
			{
				this.HMPPFGCIFJK = other.HMPPFGCIFJK;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EF62 RID: 61282 RVA: 0x0027F578 File Offset: 0x0027D778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EF63 RID: 61283 RVA: 0x0027F584 File Offset: 0x0027D784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 88U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ItemId = input.ReadUInt32();
						}
					}
					else
					{
						this.HMPPFGCIFJK = input.ReadUInt32();
					}
				}
				else
				{
					this.GridId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005E92 RID: 24210
		private static readonly MessageParser<UseTreasureDungeonItemCsReq> _parser = new MessageParser<UseTreasureDungeonItemCsReq>(() => new UseTreasureDungeonItemCsReq());

		// Token: 0x04005E93 RID: 24211
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E94 RID: 24212
		public const int GridIdFieldNumber = 4;

		// Token: 0x04005E95 RID: 24213
		private uint gridId_;

		// Token: 0x04005E96 RID: 24214
		public const int HMPPFGCIFJKFieldNumber = 11;

		// Token: 0x04005E97 RID: 24215
		private uint hMPPFGCIFJK_;

		// Token: 0x04005E98 RID: 24216
		public const int ItemIdFieldNumber = 13;

		// Token: 0x04005E99 RID: 24217
		private uint itemId_;
	}
}
